Default mount options on auto-mounted NTFS partitions (how to add `noexec` and `fmask=0111`?)
Posted
by
jetxee
on Ask Ubuntu
See other posts from Ask Ubuntu
or by jetxee
Published on 2010-12-09T09:35:07Z
Indexed on
2011/01/16
17:59 UTC
Read the original article
Hit count: 203
I use auto-mounting of external USB devices, and it works as expected, except that NTFS partitions are mounted with executability flag on. For example:
/dev/sdb1 on /media/Elements type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
All normal files are -rwxrwxrwx
on this partition. I am not happy with the x
s. I know I can have it mounted the way I want if I pass the fmask=0111
option.
Now I use Lucid, and suppose it uses some new auto-mounting mechanism (gvfs-mount
?), but I don't really know how the default mounting options can be changed now. Gconf settings in /system/storage/default_options/ntfs/mount_options
have no effect.
So, how do I make fmask=0111
the default automounting option for all NTFS partitions? (I'd be grateful also if someone explains how the current automounting mechanism works, how to configure it, and if the default mounting options are hard-coded, what I have to recompile to change them).
I know that I can put a line in the /etc/fstab
and/or mount manually, but this is not the solution I want, because 1) I don't want to edit /etc/fstab
for each and every external drive I use, 2) fstab records appear in the Places pane of Nautilus, even if the drives are not present. The questions is how to change the defaults.
© Ask Ubuntu or respective owner